<div class="donvis view">
<h2><?php  __('Donvi');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $donvi['Donvi']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Donvi'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $donvi['Donvi']['donvi']; ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<ul>
		<li><?php echo $html->link(__('Sửa', true), array('action' => 'edit', $donvi['Donvi']['id'])); ?> </li>
		<li><?php echo $html->link(__('Xóa', true), array('action' => 'delete', $donvi['Donvi']['id']), null, sprintf(__('Bạn có chắc muốn xóa không?', true), $donvi['Donvi']['id'])); ?> </li>
		<li><?php echo $html->link(__('Danh mục đơn vị', true), array('action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('Thêm đơn vị mới', true), array('action' => 'add')); ?> </li>
		<li><?php echo $html->link(__('Danh sách giáo viên', true), array('controller' => 'giaoviens', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('Thêm giáo viên mới', true), array('controller' => 'giaoviens', 'action' => 'add')); ?> </li>
	</ul>
</div>
	<div class="related">
		<h3><?php  __('Related Giaoviens');?></h3>
	<?php if (!empty($donvi['Giaovien'])):?>
		<dl>	<?php $i = 0; $class = ' class="altrow"';?>
			<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $donvi['Giaovien']['id'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Donvi Id');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $donvi['Giaovien']['donvi_id'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Mscb');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $donvi['Giaovien']['mscb'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Hoten');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $donvi['Giaovien']['hoten'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Ngaysinh');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $donvi['Giaovien']['ngaysinh'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Gioitinh');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $donvi['Giaovien']['gioitinh'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Email');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $donvi['Giaovien']['email'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Pass');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $donvi['Giaovien']['pass'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Role');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $donvi['Giaovien']['role'];?>
&nbsp;</dd>
		</dl>
	<?php endif; ?>
		<div class="actions">
			<ul>
				<li><?php echo $html->link(__('Sửa thông tin giáo viên ', true), array('controller' => 'giaoviens', 'action' => 'edit', $donvi['Giaovien']['id'])); ?></li>
			</ul>
		</div>
	</div>
	<div class="related">
	<h3><?php __('Related Giaoviens');?></h3>
	<?php if (!empty($donvi['Giaovien'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Donvi Id'); ?></th>
		<th><?php __('Mscb'); ?></th>
		<th><?php __('Hoten'); ?></th>
		<th><?php __('Ngaysinh'); ?></th>
		<th><?php __('Gioitinh'); ?></th>
		<th><?php __('Email'); ?></th>
		<th><?php __('Pass'); ?></th>
		<th><?php __('Role'); ?></th>
		<th class="actions"><?php __('Thao tác');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($donvi['Giaovien'] as $giaovien):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $giaovien['id'];?></td>
			<td><?php echo $giaovien['donvi_id'];?></td>
			<td><?php echo $giaovien['mscb'];?></td>
			<td><?php echo $giaovien['hoten'];?></td>
			<td><?php echo $giaovien['ngaysinh'];?></td>
			<td><?php echo $giaovien['gioitinh'];?></td>
			<td><?php echo $giaovien['email'];?></td>
			<td><?php echo $giaovien['pass'];?></td>
			<td><?php echo $giaovien['role'];?></td>
			<td class="actions">
				<?php echo $html->link(__('Hiển thị', true), array('controller' => 'giaoviens', 'action' => 'view', $giaovien['id'])); ?>
				<?php echo $html->link(__('Sửa', true), array('controller' => 'giaoviens', 'action' => 'edit', $giaovien['id'])); ?>
				<?php echo $html->link(__('Xóa', true), array('controller' => 'giaoviens', 'action' => 'delete', $giaovien['id']), null, sprintf(__('Bạn có chắc muốn xóa không?', true), $giaovien['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $html->link(__('Thêm giáo viên mới', true), array('controller' => 'giaoviens', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
